/*
 * @Author: your name
 * @Date: 2021-12-17 15:26:00
 * @LastEditTime: 2023-01-11 13:51:51
 * @LastEditors: 陈宇 975155172@qq.com
 * @Description: 定义数据库的参数和数据类型
 * @FilePath: 
 */

import { Column, Entity, BaseEntity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('public_config')
export class PublicConfig extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({type:'varchar', name: 'ICP_record_number', comment: 'ICP备案号'}) // , default: '黑ICP备19008173号-13'
  ICP_record_number: string;

  @Column({type:'varchar', name: 'headline', comment: '大标题'}) // , default: '高价出售本人脑子，没有用过有意者私'
  headline: string;

  @Column({type:'varchar', name: 'subtitle', comment: '小标题'}) // , default: '没有人不遗憾，只是有的人不说。'
  subtitle: string;

  @Column({type:'varchar', name: 'logoImg', comment: 'log地址', nullable: true, default: ''}) // 
  logoImg: string;

  @Column({type:'varchar', name: 'web_name', comment: '网站名称'}) // , default: '小草的成长'
  web_name: string;
}